package com.qf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
/**
 * swagger:
 *   contact:
 *     name:
 *     website:
 *     email:
 *   doc:
 *     title:
 *     desc:
 *     version:
 *   basepackage:
 */
@ConfigurationProperties(prefix = "swagger")
@Data
public class SwaggerProperties {

    @NestedConfigurationProperty
    private Contact contact; //作者信息

    @NestedConfigurationProperty
    private Doc doc; //文档信息

    private String basepackage; //扫描包

    private String[] envs; //允许swagger开启的环境

}
